<script type="text/javascript">
	$(function() {
	    $.fn.dataGridOptions.formSubFun("#form",'/modules/additional/commodity/doCommodityEdit.html',"修改成功！","修改失败！");
	});
</script>
<style>
.hide{display:none;}
.sForm .ipt{margin-left:155px;}
.sForm .ipt1{margin-bottom:20px;margin-left:155px;}
.sForm .lab{width:139px;}
</style>
<div class="popForm sForm">
    <form id="form"  method="post">
    	<div class="formitm">
		     <label class="lab">商品名称：</label>
		     <div class="ipt">
		     	<input type="text" name="name" class="w200 easyui-validatebox" data-options="required: true" maxlength="10"  value="${commodity.name!}"/>
		     	<b>*</b>
		     </div>
		</div>
		<div class="formitm">
			<label class="lab">商品类别：</label>
			<div class="ipt">
				<select name="category" id="category" onchange="showPayType()">
					<option value="1" <#if commodity.category == 1>selected="selected"</#if>>积分抽奖</option>
					<option value="2" <#if commodity.category == 2>selected="selected"</#if>>签到抽奖</option>
					<option value="3"	<#if commodity.category == 3>selected="selected"</#if>>满审成功活动</option>
				</select>
			</div>
		</div>
		<div class="formitm">
			<label class="lab">商品总数量：</label>
			<div class="ipt">
				<input type="text" name="totalNum" class="w200 easyui-validatebox" date-options="required: true" value="${commodity.totalNum!}" maxlength="5">
				<b>*</b>
			</div>
		</div>
		<div class="formitm">
		     <label class="lab">商品状态：</label>
		     <div class="ipt">
		     	<input type="radio" id="status" class="xj-hongbao" value="0" name="status"  <#if commodity.status == 0>checked="checked"</#if>>启用
		     	<input type="radio" id="status" class="xn-hongbao" value="1" name="status" <#if commodity.status == 1>checked="checked"</#if>>禁用
		     </div>
		</div>
		<div class="formitm">
			<label class="lab">商品备注：</label>
			<div class="ipt">
				<textarea rows="3" cols="50" maxlength="250" name="remark">${commodity.remark!}</textarea>
			</div>
		</div>


		<div class="formitm">
			<label class="lab">修改时间：</label>
			<div class="ipt">
				${commodity.modifyTime!}
			</div>
		</div>
		<div class="formitm" style="clear: both">
			 <label class="lab">添加时间：</label>
			 <div class="ipt">
				${commodity.createTime?string('yyyy-MM-dd hh:mm:ss')}
			 </div>
		</div>
		<input type="hidden" name="createTime" value="${commodity.createTime?string('yyyy-MM-dd hh:mm:ss')}">
		<input type="hidden" name="id" value="${commodity.id!}">
	</form>
</div>